﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Top="0" Left="0"
    Title="Hospital Management System" Margin="10" WindowState="Normal" WindowStyle="None" 
        AllowsTransparency="True" Icon="/Horizon.HMS;component/Images/POSIcon.ico"
         xmlns:wpfspark="clr-namespace:WPFSpark;assembly=WPFSpark"
        xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit">
    <Window.Background>
        <ImageBrush ImageSource="/Horizon.HMS;component/Images/POSBackground.jpeg" />
        <!--<SolidColorBrush Color="Black"/>-->
    </Window.Background>
    <Window.Resources>
        <DataTemplate x:Key="ListBoxItemTemplate">
            <StackPanel>
                <TextBlock FontFamily="Segoe WP"
                           FontWeight="Light"
                           FontSize="20"
                           Foreground="Gray"
                           Background="Transparent"
                           Text="{Binding ModuleTitle}"></TextBlock>
                <TextBlock FontFamily="Segoe WP"
                           FontWeight="Light"
                           FontSize="10"
                           Foreground="DarkGray"
                           Background="Transparent"
                           Text="{Binding ModuleDescription}"></TextBlock>
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition Height="35"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <TextBlock Margin="10,2" FontSize="28" Foreground="White" FontWeight="SemiBold">
                <Run Text="Hospital Management System (" />
                <Run Text="Your management partner..." FontSize="18" FontStyle="Italic"/>
                <Run Text=")" />
        </TextBlock>
        <Button Grid.Column="1" Style="{DynamicResource CloseButtonStyle}" Width="11.195" Content="Button" x:Name="CloseButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,5.583,7.468,0" VerticalAlignment="Top" Height="12.77"/>
        <Button Grid.Column="1" Style="{DynamicResource MinimizeButtonStyle}" Width="12.402" Content="Button" x:Name="MinimizeButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,4.733,24.606,0" VerticalAlignment="Top" Height="13.537"/>
        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="5" Grid.Row="1" Grid.ColumnSpan="2" Background="#00000000">
           <StackPanel Width="Auto" Height="Auto" Margin="30,0,0,10" x:Name="MetroStackPanel" Orientation="Horizontal" Background="#00000000"/>
        </ScrollViewer>
                
        <Grid Grid.Row="2" Margin="40" Name="ReportGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Text="Reports" FontSize="32" Foreground="White"/>
            <wpfspark:PivotPanel x:Name="RootPivotPanel" Grid.Row="1"
                             HeaderHeight="30"
                             HorizontalAlignment="Stretch"/>
        </Grid>
        <Grid Grid.Row="2" Grid.Column="1" Margin="40" Name="ChartGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Text="Charts" FontSize="32" Foreground="White"/>
            <ScrollViewer Background="{StaticResource TileBgRctFill}" BorderThickness="0" Foreground="White" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1">
                <TabControl Name="MainStack" >
                    <TabItem Header="Sales Charts">
                        <chartingToolkit:Chart Name="columnChartIncome" Title="Sales Charts">
                            <chartingToolkit:ColumnSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" />
                        </chartingToolkit:Chart>
                    </TabItem>
                    <TabItem Header="Collection Charts">
                        <chartingToolkit:Chart Name="columnChartCollection" Title="Collection Charts" >
                            <chartingToolkit:ColumnSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" />
                        </chartingToolkit:Chart>
                    </TabItem>
                    <TabItem Header="Patient Flow Charts">
                        <chartingToolkit:Chart Name="columnChartPatientFlow" Title="Patient Flow Charts" >
                            <chartingToolkit:ColumnSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" />
                        </chartingToolkit:Chart>
                    </TabItem>
                    <!--<chartingToolkit:Chart  Name="pieChart" Title="Pie Series Demo" VerticalAlignment="Top" Margin="449,39,43,0" Height="262">
                        <chartingToolkit:PieSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" IsSelectionEnabled="True" />
                    </chartingToolkit:Chart>
                    <chartingToolkit:Chart  Name="areaChart" Title="Area Series Demo" VerticalAlignment="Top" Margin="33,330,440,0" Height="262">
                        <chartingToolkit:AreaSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" IsSelectionEnabled="True"/>
                    </chartingToolkit:Chart>
                    <chartingToolkit:Chart  Name="barChart" Title="Bar Series Demo" VerticalAlignment="Top" Margin="449,330,43,0" Height="262">
                        <chartingToolkit:BarSeries  DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" IsSelectionEnabled="True"/>
                    </chartingToolkit:Chart>
                    <chartingToolkit:Chart  Name="lineChart" Title="Line Series Demo" VerticalAlignment="Top" Margin="33,611,440,0" Height="254">
                        <chartingToolkit:LineSeries  DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" IsSelectionEnabled="True"/>
                    </chartingToolkit:Chart>-->
                </TabControl>
            </ScrollViewer>
        </Grid>
        <TextBlock Grid.Row="3" Margin="5,2" FontSize="22" Foreground="White" FontWeight="SemiBold">
                <Run Name="CompanyNameRun" />
                <Run Text=" :: " />
                <Run Name="UserNameRun" FontSize="16" FontStyle="Italic"/>
                <Run Text=" :: " />
                <Run Name="DateTimeRun" FontSize="16" FontStyle="Italic"/>
                <Run Text=" :: " />
                <Run Name="RegistrationInfoRun" Text="Trial Version" MouseLeftButtonDown="RegistrationInfoRun_MouseLeftButtonDown" FontSize="16" FontStyle="Italic"/>
        </TextBlock>
    </Grid>
</Window>
